<template>
  <div>
    <el-alert
      title="对公司名称、公司地址、营业执照、公司地区的更新，将使得公司资料被重新审核，请谨慎修改"
      type="info"
      show-icon
    />

    <!-- 表单区域 -->
    <el-form label-width="120px" style="margin-top:50px">
      <el-form-item label="公司名称">
        <el-input v-model="formData.name" disabled style="width:400px" />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="formData.companyAddress" disabled style="width:400px" />
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input v-model="formData.mailbox" disabled style="width:400px" />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="formData.remarks" type="textarea" :rows="3" disabled style="width:400px" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getCompanyInfo } from '@/api/setting'
export default {
  data() {
    return {
      formData: {

      }
    }
  },
  computed: {
    companyId() {
      return this.$store.getters.companyId
    }
  },
  created() {
    this.getCompanyInfo()
  },
  methods: {
    async  getCompanyInfo() {
      this.formData = await getCompanyInfo(this.companyId)
      console.log(this.formData)
    }
  }

}
</script>

<style>
.el-pagination{
  margin-top: 30px;
  text-align: center;
}
</style>
